<template>
  <div>
    <van-row type="flex" class="head">
      <van-col span="10"
        ><router-link to="/SetUp"
          ><van-icon size="25px" name="arrow-left" /></router-link
      ></van-col>
      <van-col span="14" class="sp_1">建议反馈</van-col>
    </van-row>
    <div class="bgc">
      <van-row type="flex">
        <van-col span="24">
          <input
            class="bgc_inp"
            type="text"
            placeholder="请输入您的建议或您所遇到的问题"
            v-model="inpp"
          />
        </van-col>
      </van-row>
      <van-row v-show="pasbut" type="flex">
        <van-col span="24" class="pasbut"> 提交成功</van-col>
      </van-row>
      <van-row v-show="pasbut1" type="flex">
        <van-col span="24" class="pasbut1"> 请输入内容</van-col>
      </van-row>
      <van-row type="flex">
        <van-col span="24">
          <button class="bgc_but" @click="but">提交反馈</button>
        </van-col>
      </van-row>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      pasbut: false,
      pasbut1: false,
      inpp: "",
    };
  },
  methods: {
    but() {
      if (this.inpp === "") {
        this.pasbut1 = true;
      } else {
        this.pasbut = true;
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.head {
  width: 100%;
  height: 27px;
  padding: 10px 0;
  .sp_1 {
    font-weight: 500;
    font-size: 17px;
  }
}
.bgc {
  width: 100%;
  height: 760px;
  margin-top: 5px;
  background-color: #f1f1f1;
  .bgc_inp {
    width: 90%;
    height: 30px;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 210px;
    border: none;
    margin: 4%;
  }
  .bgc_but {
    width: 90%;
    height: 50px;
    margin: 0 5%;
    border-radius: 10px;
    background-color: #31313b;
    border: none;
    color: white;
    margin-top: 10px;
  }
  .pasbut {
    color: blue;
    padding-left: 40%;
  }
  .pasbut1 {
    color: red;
    padding-left: 35%;
  }
}
</style>